package com.sziit.se.highconcurrency.product.application.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sziit.se.highconcurrency.product.application.entity.Product;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author dongchunkeng
 * @since 2022-11-08
 */
public interface IProductService extends IService<Product> {
    List<Product> getAllData();

    Boolean insertProduct(String productId,String productName, int inventory, float price, byte[] image);

    Product getOneData(String productId);

    Boolean updateOneDate(Product product);

    List<Product> queryProductByPage(String productName,
                                     Float price,
                                     Integer index,
                                     Integer pageSize);

    Integer selectCount(String productName, Float price);
}
